package com.ucode.model.hrm.convert;

import com.ucode.model.hrm.HrmEmployee;
import com.ucode.model.hrm.form.HrmEmployeeEditForm;
import com.ucode.model.hrm.form.HrmEmployeeForm;
import com.ucode.model.hrm.vo.HrmEmployeeVO;
import com.ucode.tool.base.Paginator;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface HrmEmployeeConvert {

    HrmEmployeeConvert INSTANCE = Mappers.getMapper(HrmEmployeeConvert.class);

    HrmEmployee convert(HrmEmployeeForm form);

    HrmEmployee convert(HrmEmployeeEditForm form);

    HrmEmployeeVO convert(HrmEmployee bean);

    Paginator<HrmEmployeeVO> convertPage(Paginator<HrmEmployee> page);

    List<HrmEmployeeVO> convertList(List<HrmEmployee> list);

}


